package com.sooth.micro.entity.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import lombok.Data;

import java.sql.Types;

/**
 * @Description: 实体
 * @Author: moxa
 * @Date: 2023-11-30 19:17:01
 */
@Data
@Table("micro_entity")
public class MicroEntity {


    /**
     * id
     */
    @Id
    @Column(value = "id", jdbcType = Types.BIGINT)
    private Long id;

    /**
     * 租户编号
     */
    @Column(value = "tenant_id", jdbcType = Types.VARCHAR)
    private String tenantId;

    /**
     * 实体名称
     */
    @Column(value = "entity_name", jdbcType = Types.VARCHAR)
    private String entityName;

    /**
     * 实体编码
     */
    @Column(value = "entity_code", jdbcType = Types.VARCHAR)
    private String entityCode;

    /**
     * 数据源id
     */
    @Column(value = "datasource_id", jdbcType = Types.BIGINT)
    private Long datasourceId;

    /**
     * 表名称
     */
    @Column(value = "table_name", jdbcType = Types.VARCHAR)
    private String tableName;

    /**
     * 创建者
     */
    @Column(value = "create_by", jdbcType = Types.BIGINT)
    private Long createBy;

    /**
     * 创建时间
     */
    @Column(value = "create_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date createTime;

    /**
     * 更新者
     */
    @Column(value = "update_by", jdbcType = Types.BIGINT)
    private Long updateBy;

    /**
     * 更新时间
     */
    @Column(value = "update_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date updateTime;
}
